package com.fileshare.web.utils;

import com.google.gson.Gson;

/**
 * json转换工具
 */
public class JsonUtil {

    private static final Gson gson = new Gson();

    public static String objectToString(Object object){
      return object==null?null:gson.toJson(object);
    }
}
